//
//  JCPickerView.h
//  JiFengDaRen
//
//  Created by shouhan on 2018/3/30.
//  Copyright © 2018年 陈永发. All rights reserved.
//

#import <UIKit/UIKit.h>
@class JCPickerView;

@protocol JCPickerViewDelegate <NSObject>

- (void)pickerView:(JCPickerView *)pickerView didSelectDateString:(NSString *)dateString;
@end

@interface JCPickerView : UIView

@property (nonatomic, strong) UIDatePicker *datePicker;

@property (nonatomic, strong) NSDate * date;

@property (nonatomic,weak) id<JCPickerViewDelegate>delegate;

@property (nonatomic,strong) UIView *screenView;

@property (nonatomic, assign) NSInteger dateTag;


- (instancetype)initDatePickerWithDefaultDate:(NSDate *)date
                            andDatePickerMode:(UIDatePickerMode )mode;

/**
 移除PickerView
 */
- (void)remove;

/**
 显示PickerView
 */
- (void)show;

@end
